package com.sc.nft.entity.vo;

import com.sc.nft.enums.ProductTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 编辑商品参数
 *
 * @author liGen
 * @version 1.0
 * @date 2023/11/13 11:35 上午
 */
@Data
public class MallProductVO {

    @ApiModelProperty(value = "商品Id,编辑时必传")
    private Long id;

    @ApiModelProperty(value = "商品类型", required = true)
    @NotNull(message = "商品类型不能为空")
    private ProductTypeEnum type;

    @ApiModelProperty(value = "分类Id", required = true)
    @NotNull(message = "分类Id不能为空")
    private Long categoryId;

    @ApiModelProperty(value = "daoId", required = true)
    @NotNull(message = "daoId不能为空")
    private Long daoId;

    @ApiModelProperty(value = "封面图", required = true)
    @NotEmpty(message = "封面图不能为空")
    private List<String> coverImages;

    @ApiModelProperty(value = "缩略图", required = true)
    @NotBlank(message = "缩略图不能为空")
    private String thumbnail;

    @ApiModelProperty(value = "商品标题", required = true)
    @NotBlank(message = "商品标题不能为空")
    private String productName;

    @ApiModelProperty(value = "商品详情", required = true)
    @NotEmpty(message = "商品详情不能为空")
    private List<String> productDetail;

    @ApiModelProperty(value = "商品封面主图是不是3:4 ", required = true)
    private Boolean isLongImage;

}
